from concurrent.futures import ProcessPoolExecutor
import math

PRIMES = [
             1116281,
             1297337,
             104395303,
             472882027,
             533000389,
             817504243,
             982451653,
             112272535095293,
             112582705942171,
             112272535095293,
             115280095190773,
             115797848077099,
             1099726899285419
         ] * 5
def is_prime(num):
    assert num>0
    for i in range(2,int(math.sqrt(num))+1):
        if num%i==0:
            return  False
    return num!=1
if __name__ == '__main__':
    with ProcessPoolExecutor() as ex:
        for i,is_bool in zip(PRIMES,ex.map(is_prime,PRIMES)):
            print(f"{i} is prime:{is_bool}")

